package cn.smbms.dao.user.impl;

import cn.smbms.dao.user.UserMapper;
import cn.smbms.pojo.User;
import org.mybatis.spring.SqlSessionTemplate;

import java.util.List;

public class UserMapperImpl implements UserMapper {
    private SqlSessionTemplate sqlSession;
    @Override
    public List<User> getUserList(User user) {
        return sqlSession.selectList("cn.smbms.dao.user.UserMapper.getUserList",user);

    }

    @Override
    public int add(User user) {
        return 0;
    }

    public SqlSessionTemplate getSqlSession(){
        return sqlSession;
    }
    public void setSqlSession(SqlSessionTemplate sqlSession){
        this.sqlSession=sqlSession;
    }
}
